<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Login</title>
<style type="text/css">
<!--
input {
	font-family:微软雅黑;
	font-size:16px;
}

.button{
	width:100px;
	height:32px;
	font-family:'Courier New', Courier, monospace;
	font-size:16px;
	text-align:center;
}
-->
</style>
<script type="text/javascript" src="./js/Common.js"></script>
<script type="text/javascript" language="javascript">
// <![CDATA[
function Window_Load(){;
	Opacity(H$("Password"),0);
	Opacity(H$("UserName"),60);
	Opacity(H$("Dummy"),60);
	Opacity(H$("Commands"),60)
	window.parent.fadeIn();
	fixPng(H$("bg"));
	Password_Change();
}

function Password_Change(){
	H$("Dummy").value=H$("Password").value;
}

function ValidateData(){
	H$("pswHash").value=CalcHash(H$("Password").value);
}

function CancelLogin(){
	window.parent.fadeOut();
}
// ]]>
</script>
</head>

<body bgcolor="transparent" style="background:none;" onload="javascript:Window_Load();">
    <div style="position:relative; height:250px; width:373px; left: 50%; margin-top:10%; margin-left:-150px; ">
      <img id="bg" src="<%=Application(Session("Server") & "Login-trans.png")%>" style="position:absolute; top:0px; left:0px; width:373px; height:250px; z-index:-1;" />
      <form action="Passport.asp" method="post" name="PostMessage" target="_self" id="PostMessage" onsubmit="ValidateData();" style="position:absolute; left:0px; top:0px; width:100%; height: 100%">
<div align="center" style="position:absolute; left: 105px; top: 60px; width: 115px;">
              <input type="text" name="UserName" id="UserName" />
            </div>
            <div id="Commands" align="right" style="padding-top:5px; position:absolute; right:44px; top: 203px;">
              <input type="submit" name="Submit" id="Submit" value="Login" align="right" class="button"/>
              <input type="button" name="Cancel" id="Cancel" value="Cancel" align="right" onclick="CancelLogin();" class="button"/>
            </div>
            <input type="hidden" name="pswHash" id="pswHash" value="" />
        </form>
        <div align="center" style="position:absolute; left: 105px; top: 135px; width: 115px; z-index:5;">
          <input type="text" name="Password" id="Password" onkeyup="Password_Change();" />
        </div>
        <div align="center" style="position:absolute; left: 105px; top: 135px; width: 115px;">
          <input type="password" name="Dummy" id="Dummy" onchange="" />
        </div>
    </div>
</body>
</html>
